End Of Line ^m

[Solved] End Of Line ^m | Perl - Code Explorer | yomemimo.com
Question : end of line ^m

Answered by : charlesalexandre-roy

Short answer:
^M is how Vim displays the 0x0D character. The 0x0D character is also
represented by CR (carriage return), \r, and 13 in decimal. In Windows it
is used in conjunction with the line feed character (e.g. 0x0D 0x0A) to
denote new lines.
In Vim you can remove the ^M characters by typing:
:%s/^M//g
You can also run the dos2unix utility on the file.

Source : https://stackoverflow.com/questions/5843495/what-does-m-character-mean-in-vim | Last Update : Wed, 08 Dec 21

Answers related to end of line ^m

Code Explorer Popular Question For Perl